package train;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;

import de.bwaldvogel.liblinear.InvalidInputDataException;
import de.bwaldvogel.liblinear.Predict;

public class Train {

	/**
	 * @param args
	 * @throws IOException 
	 * @throws InvalidInputDataException 
	 */
	public static void main(String[] args) throws IOException, InvalidInputDataException {
		//label of classes
		ArrayList<String> label = new ArrayList<String>();
		label.add("1");
		label.add("2");
		label.add("3");
		label.add("4");
		label.add("5");
		
		//number of models
		ArrayList<String> model = new ArrayList<String>();
		for(int i = 0; i < label.size() - 1; i++){
			for(int j = i + 1; j < label.size(); j++){
				model.add((i + 1) + "_" + (j + 1) + ".libsvm");
			}
		}
		
		for(int i = 0; i < model.size(); i++){
			System.out.println(model.get(i));
		}
				
//		System.out.println("Nhap thong so: ");
//		
//		BufferedReader buf = new BufferedReader (new InputStreamReader (System.in));
//		String line = buf.readLine ();
//		
//    	String input[] = line.split(" ");
//    	System.out.println(line);
    	
    	for(int i = 0; i < model.size(); i++){
    		de.bwaldvogel.liblinear.Train train = new de.bwaldvogel.liblinear.Train();
        	train.main(model.get(i).split(" "));
		}
    	
    	
    	
//    	Predict predict = new Predict();
//    	predict.main(input);

	}

}
